"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
Object.defineProperty(exports, "__esModule", { value: true });
var vue_1 = require("vue");
var element_plus_1 = require("element-plus");
var vue_router_1 = require("vue-router");
var icons_vue_1 = require("@element-plus/icons-vue");
// 路由实例
var router = (0, vue_router_1.useRouter)();
// 状态管理
var activeTab = (0, vue_1.ref)('receipt');
var dateRange = (0, vue_1.ref)([]);
var keyword = (0, vue_1.ref)('');
var activePeriod = (0, vue_1.ref)('today');
// 表格数据
var tableData = (0, vue_1.ref)([]);
// 分页配置
var pagination = (0, vue_1.ref)({
    currentPage: 1,
    pageSize: 10,
    total: 0
});
// 弹窗状态
var detailDialogVisible = (0, vue_1.ref)(false);
var editDialogVisible = (0, vue_1.ref)(false);
var currentOrder = (0, vue_1.ref)({});
var editForm = (0, vue_1.reactive)({
    contact: '',
    phone: '',
    manager: '',
    paymentType: '',
    productType: '',
    status: ''
});
// 状态样式映射
var statusTypeMap = {
    '待审核': 'warning',
    '已审核': 'success',
    '已冻结': 'danger',
    '已完成': 'primary'
};
// 初始化
(0, vue_1.onMounted)(function () {
    initDateRange();
    fetchTableData();
});
// 初始化日期范围
var initDateRange = function () {
    var today = new Date().toISOString().split('T')[0];
    dateRange.value = [today, today];
};
// 切换标签
var switchTab = function (tab) {
    if (activeTab.value === tab)
        return;
    activeTab.value = tab;
    resetFilter();
    pagination.value.currentPage = 1;
    fetchTableData();
};
// 快捷周期切换
var handlePeriodChange = function () {
    var now = new Date();
    var start, end;
    if (activePeriod.value === 'today') {
        start = new Date(now.setHours(0, 0, 0, 0));
        end = new Date();
    }
    else if (activePeriod.value === 'week') {
        var day = now.getDay() || 7;
        start = new Date(now.setDate(now.getDate() - day + 1));
        start.setHours(0, 0, 0, 0);
        end = new Date();
    }
    else if (activePeriod.value === 'month') {
        start = new Date(now.getFullYear(), now.getMonth(), 1);
        start.setHours(0, 0, 0, 0);
        end = new Date();
    }
    dateRange.value = [
        start.toISOString().split('T')[0],
        end.toISOString().split('T')[0]
    ];
    fetchTableData();
};
// 获取表格数据
var fetchTableData = function () {
    var params = {
        type: activeTab.value,
        startDate: dateRange.value[0],
        endDate: dateRange.value[1],
        keyword: keyword.value,
        page: pagination.value.currentPage,
        pageSize: pagination.value.pageSize
    };
    setTimeout(function () {
        if (activeTab.value === 'receipt') {
            tableData.value = [
                {
                    shopName: '东方美容院',
                    receiptTime: '2024-11-11 09:23',
                    orderNo: 'SK20241111001',
                    contact: '张女士',
                    phone: '13800138000',
                    manager: '李经理',
                    receiptAmount: '¥2980.00',
                    paymentType: '微信支付',
                    arrears: '¥0.00',
                    status: '已审核'
                },
                {
                    shopName: '丽人SPA馆',
                    receiptTime: '2024-11-11 14:56',
                    orderNo: 'SK20241111002',
                    contact: '王女士',
                    phone: '13900139000',
                    manager: '张经理',
                    receiptAmount: '¥5680.00',
                    paymentType: '支付宝',
                    arrears: '¥1000.00',
                    status: '待审核'
                },
                {
                    shopName: '名媛会所',
                    receiptTime: '2024-11-10 16:30',
                    orderNo: 'SK20241110005',
                    contact: '刘女士',
                    phone: '13700137000',
                    manager: '赵经理',
                    receiptAmount: '¥12980.00',
                    paymentType: '银行转账',
                    arrears: '¥0.00',
                    status: '已冻结'
                }
            ];
            pagination.value.total = 28;
        }
        else {
            tableData.value = [
                {
                    shopName: '东方美容院',
                    salesTime: '2024-11-11 10:15',
                    orderNo: 'XS20241111001',
                    contact: '张女士',
                    phone: '13800138000',
                    manager: '李经理',
                    salesAmount: '¥3580.00',
                    productType: '套盒',
                    discount: '¥300.00',
                    status: '已完成'
                },
                {
                    shopName: '丽人SPA馆',
                    salesTime: '2024-11-11 15:20',
                    orderNo: 'XS20241111002',
                    contact: '王女士',
                    phone: '13900139000',
                    manager: '张经理',
                    salesAmount: '¥6280.00',
                    productType: '单品',
                    discount: '¥500.00',
                    status: '待审核'
                },
                {
                    shopName: '名媛会所',
                    salesTime: '2024-11-10 14:10',
                    orderNo: 'XS20241110003',
                    contact: '刘女士',
                    phone: '13700137000',
                    manager: '赵经理',
                    salesAmount: '¥9800.00',
                    productType: '仪器',
                    discount: '¥1000.00',
                    status: '已审核'
                }
            ];
            pagination.value.total = 42;
        }
    }, 500);
};
// 重置筛选条件
var resetFilter = function () {
    initDateRange();
    keyword.value = '';
    activePeriod.value = 'today';
};
// 编辑订单
var handleEdit = function (row) {
    if (row.status === '已冻结') {
        element_plus_1.ElMessage.warning('已冻结订单不可编辑');
        return;
    }
    Object.assign(editForm, JSON.parse(JSON.stringify(row)));
    editDialogVisible.value = true;
};
// 保存编辑
var saveEdit = function () {
    var index = tableData.value.findIndex(function (item) { return item.orderNo === editForm.orderNo; });
    if (index !== -1) {
        tableData.value[index] = __assign(__assign({}, tableData.value[index]), editForm);
        element_plus_1.ElMessage.success('编辑成功');
        editDialogVisible.value = false;
    }
};
// 查看详情
var handleDetail = function (row) {
    currentOrder.value = row;
    detailDialogVisible.value = true;
};
// 冻结/解冻
var handleFreeze = function (row) {
    var isFreezing = row.status !== '已冻结';
    element_plus_1.ElMessageBox.confirm("".concat(isFreezing ? '确定要冻结该订单吗？冻结后将无法编辑' : '确定要解冻该订单吗？'), '操作确认', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: isFreezing ? 'warning' : 'info'
    }).then(function () {
        row.status = isFreezing ? '已冻结' : '待审核';
        element_plus_1.ElMessage.success("".concat(isFreezing ? '冻结' : '解冻', "\u6210\u529F"));
    }).catch(function () {
        element_plus_1.ElMessage.info('已取消操作');
    });
};
// 导出
var handleExport = function (row) {
    element_plus_1.ElMessage.success("\u6B63\u5728\u5BFC\u51FA\u8BA2\u5355\u3010".concat(row.orderNo, "\u3011\u6570\u636E..."));
    setTimeout(function () {
        element_plus_1.ElMessage.success("\u8BA2\u5355\u3010".concat(row.orderNo, "\u3011\u5BFC\u51FA\u6210\u529F"));
    }, 800);
};
// 分页处理
var handleSizeChange = function (size) {
    pagination.value.pageSize = size;
    pagination.value.currentPage = 1;
    fetchTableData();
};
var handlePageChange = function (page) {
    pagination.value.currentPage = page;
    fetchTableData();
};
// 合计计算
var calculateSummary = function (_a) {
    var columns = _a.columns, data = _a.data;
    var sums = [];
    columns.forEach(function (column, index) {
        if (index === 0) {
            sums[index] = '合计';
            return;
        }
        var prop = column.property;
        if ((activeTab.value === 'receipt' && ['receiptAmount', 'arrears'].includes(prop)) ||
            (activeTab.value === 'sales' && ['salesAmount', 'discount'].includes(prop))) {
            var total = data.reduce(function (sum, item) {
                var num = Number(item[prop].replace('¥', ''));
                return sum + (isNaN(num) ? 0 : num);
            }, 0);
            sums[index] = "\u00A5".concat(total.toFixed(2));
        }
        else {
            sums[index] = '';
        }
    });
    return sums;
};
// 返回
var handleBack = function () {
    router.back();
};
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
var __VLS_ctx = __assign(__assign({}, {}), {});
var __VLS_elements;
var __VLS_components;
var __VLS_directives;
/** @type {__VLS_StyleScopedClasses['tab-item']} */ ;
/** @type {__VLS_StyleScopedClasses['tab-item']} */ ;
/** @type {__VLS_StyleScopedClasses['active']} */ ;
/** @type {__VLS_StyleScopedClasses['back-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['oper-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['filter-row']} */ ;
/** @type {__VLS_StyleScopedClasses['filter-actions']} */ ;
/** @type {__VLS_StyleScopedClasses['date-picker']} */ ;
/** @type {__VLS_StyleScopedClasses['keyword-input']} */ ;
/** @type {__VLS_StyleScopedClasses['pagination-container']} */ ;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "order-query-page" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "page-title" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "tab-container" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign(__assign({ onClick: function () {
        var _a = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            _a[_i] = arguments[_i];
        }
        var $event = _a[0];
        __VLS_ctx.switchTab('receipt');
        // @ts-ignore
        [switchTab,];
    } }, { class: "tab-item" }), { class: ({ active: __VLS_ctx.activeTab === 'receipt' }) }));
// @ts-ignore
[activeTab,];
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign(__assign({ onClick: function () {
        var _a = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            _a[_i] = arguments[_i];
        }
        var $event = _a[0];
        __VLS_ctx.switchTab('sales');
        // @ts-ignore
        [switchTab,];
    } }, { class: "tab-item" }), { class: ({ active: __VLS_ctx.activeTab === 'sales' }) }));
// @ts-ignore
[activeTab,];
var __VLS_0 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0(__assign(__assign({ 'onClick': {} }, { type: "text", icon: "ArrowLeft" }), { class: "back-btn" })));
var __VLS_2 = __VLS_1.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "text", icon: "ArrowLeft" }), { class: "back-btn" })], __VLS_functionalComponentArgsRest(__VLS_1), false));
var __VLS_4;
var __VLS_5;
var __VLS_6 = ({ click: {} },
    { onClick: (__VLS_ctx.handleBack) });
var __VLS_7 = __VLS_3.slots.default;
// @ts-ignore
[handleBack,];
var __VLS_3;
var __VLS_8 = {}.ElCard;
/** @type {[typeof __VLS_components.ElCard, typeof __VLS_components.elCard, typeof __VLS_components.ElCard, typeof __VLS_components.elCard, ]} */ ;
// @ts-ignore
ElCard;
// @ts-ignore
var __VLS_9 = __VLS_asFunctionalComponent(__VLS_8, new __VLS_8(__assign({ class: "filter-card" })));
var __VLS_10 = __VLS_9.apply(void 0, __spreadArray([__assign({ class: "filter-card" })], __VLS_functionalComponentArgsRest(__VLS_9), false));
var __VLS_12 = __VLS_11.slots.default;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "filter-row" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "filter-item" }));
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)(__assign({ class: "filter-label" }));
(__VLS_ctx.activeTab === 'receipt' ? '收款日期' : '销售日期');
// @ts-ignore
[activeTab,];
var __VLS_13 = {}.ElDatePicker;
/** @type {[typeof __VLS_components.ElDatePicker, typeof __VLS_components.elDatePicker, ]} */ ;
// @ts-ignore
ElDatePicker;
// @ts-ignore
var __VLS_14 = __VLS_asFunctionalComponent(__VLS_13, new __VLS_13(__assign({ modelValue: (__VLS_ctx.dateRange), type: "daterange", startPlaceholder: "开始日期", endPlaceholder: "结束日期", valueFormat: "YYYY-MM-DD" }, { class: "date-picker" })));
var __VLS_15 = __VLS_14.apply(void 0, __spreadArray([__assign({ modelValue: (__VLS_ctx.dateRange), type: "daterange", startPlaceholder: "开始日期", endPlaceholder: "结束日期", valueFormat: "YYYY-MM-DD" }, { class: "date-picker" })], __VLS_functionalComponentArgsRest(__VLS_14), false));
// @ts-ignore
[dateRange,];
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "filter-item" }));
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)(__assign({ class: "filter-label" }));
var __VLS_18 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_19 = __VLS_asFunctionalComponent(__VLS_18, new __VLS_18(__assign(__assign({ 'onKeyup': {} }, { modelValue: (__VLS_ctx.keyword), placeholder: (__VLS_ctx.activeTab === 'receipt' ? '订单号/联系人/手机号' : '订单号/产品名称/门店') }), { class: "keyword-input" })));
var __VLS_20 = __VLS_19.apply(void 0, __spreadArray([__assign(__assign({ 'onKeyup': {} }, { modelValue: (__VLS_ctx.keyword), placeholder: (__VLS_ctx.activeTab === 'receipt' ? '订单号/联系人/手机号' : '订单号/产品名称/门店') }), { class: "keyword-input" })], __VLS_functionalComponentArgsRest(__VLS_19), false));
var __VLS_22;
var __VLS_23;
var __VLS_24 = ({ keyup: {} },
    { onKeyup: (__VLS_ctx.fetchTableData) });
// @ts-ignore
[activeTab, keyword, fetchTableData,];
var __VLS_21;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "filter-actions" }));
var __VLS_26 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_27 = __VLS_asFunctionalComponent(__VLS_26, new __VLS_26(__assign({ 'onClick': {} }, { type: "primary" })));
var __VLS_28 = __VLS_27.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "primary" })], __VLS_functionalComponentArgsRest(__VLS_27), false));
var __VLS_30;
var __VLS_31;
var __VLS_32 = ({ click: {} },
    { onClick: (__VLS_ctx.fetchTableData) });
var __VLS_33 = __VLS_29.slots.default;
// @ts-ignore
[fetchTableData,];
var __VLS_34 = {}.Search;
/** @type {[typeof __VLS_components.Search, ]} */ ;
// @ts-ignore
icons_vue_1.Search;
// @ts-ignore
var __VLS_35 = __VLS_asFunctionalComponent(__VLS_34, new __VLS_34({}));
var __VLS_36 = __VLS_35.apply(void 0, __spreadArray([{}], __VLS_functionalComponentArgsRest(__VLS_35), false));
var __VLS_29;
var __VLS_39 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_40 = __VLS_asFunctionalComponent(__VLS_39, new __VLS_39(__assign({ 'onClick': {} }, { type: "default" })));
var __VLS_41 = __VLS_40.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "default" })], __VLS_functionalComponentArgsRest(__VLS_40), false));
var __VLS_43;
var __VLS_44;
var __VLS_45 = ({ click: {} },
    { onClick: (__VLS_ctx.resetFilter) });
var __VLS_46 = __VLS_42.slots.default;
// @ts-ignore
[resetFilter,];
var __VLS_42;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "quick-period" }));
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)(__assign({ class: "period-label" }));
var __VLS_47 = {}.ElRadioGroup;
/** @type {[typeof __VLS_components.ElRadioGroup, typeof __VLS_components.elRadioGroup, typeof __VLS_components.ElRadioGroup, typeof __VLS_components.elRadioGroup, ]} */ ;
// @ts-ignore
ElRadioGroup;
// @ts-ignore
var __VLS_48 = __VLS_asFunctionalComponent(__VLS_47, new __VLS_47(__assign({ 'onChange': {} }, { modelValue: (__VLS_ctx.activePeriod) })));
var __VLS_49 = __VLS_48.apply(void 0, __spreadArray([__assign({ 'onChange': {} }, { modelValue: (__VLS_ctx.activePeriod) })], __VLS_functionalComponentArgsRest(__VLS_48), false));
var __VLS_51;
var __VLS_52;
var __VLS_53 = ({ change: {} },
    { onChange: (__VLS_ctx.handlePeriodChange) });
var __VLS_54 = __VLS_50.slots.default;
// @ts-ignore
[activePeriod, handlePeriodChange,];
var __VLS_55 = {}.ElRadioButton;
/** @type {[typeof __VLS_components.ElRadioButton, typeof __VLS_components.elRadioButton, typeof __VLS_components.ElRadioButton, typeof __VLS_components.elRadioButton, ]} */ ;
// @ts-ignore
ElRadioButton;
// @ts-ignore
var __VLS_56 = __VLS_asFunctionalComponent(__VLS_55, new __VLS_55({
    label: "today",
}));
var __VLS_57 = __VLS_56.apply(void 0, __spreadArray([{
        label: "today",
    }], __VLS_functionalComponentArgsRest(__VLS_56), false));
var __VLS_59 = __VLS_58.slots.default;
(__VLS_ctx.activeTab === 'receipt' ? '今日收款' : '今日销售');
// @ts-ignore
[activeTab,];
var __VLS_58;
var __VLS_60 = {}.ElRadioButton;
/** @type {[typeof __VLS_components.ElRadioButton, typeof __VLS_components.elRadioButton, typeof __VLS_components.ElRadioButton, typeof __VLS_components.elRadioButton, ]} */ ;
// @ts-ignore
ElRadioButton;
// @ts-ignore
var __VLS_61 = __VLS_asFunctionalComponent(__VLS_60, new __VLS_60({
    label: "week",
}));
var __VLS_62 = __VLS_61.apply(void 0, __spreadArray([{
        label: "week",
    }], __VLS_functionalComponentArgsRest(__VLS_61), false));
var __VLS_64 = __VLS_63.slots.default;
(__VLS_ctx.activeTab === 'receipt' ? '本周收款' : '本周销售');
// @ts-ignore
[activeTab,];
var __VLS_63;
var __VLS_65 = {}.ElRadioButton;
/** @type {[typeof __VLS_components.ElRadioButton, typeof __VLS_components.elRadioButton, typeof __VLS_components.ElRadioButton, typeof __VLS_components.elRadioButton, ]} */ ;
// @ts-ignore
ElRadioButton;
// @ts-ignore
var __VLS_66 = __VLS_asFunctionalComponent(__VLS_65, new __VLS_65({
    label: "month",
}));
var __VLS_67 = __VLS_66.apply(void 0, __spreadArray([{
        label: "month",
    }], __VLS_functionalComponentArgsRest(__VLS_66), false));
var __VLS_69 = __VLS_68.slots.default;
(__VLS_ctx.activeTab === 'receipt' ? '本月收款' : '本月销售');
// @ts-ignore
[activeTab,];
var __VLS_68;
var __VLS_50;
var __VLS_11;
var __VLS_70 = {}.ElCard;
/** @type {[typeof __VLS_components.ElCard, typeof __VLS_components.elCard, typeof __VLS_components.ElCard, typeof __VLS_components.elCard, ]} */ ;
// @ts-ignore
ElCard;
// @ts-ignore
var __VLS_71 = __VLS_asFunctionalComponent(__VLS_70, new __VLS_70(__assign({ class: "table-card" }, { style: {} })));
var __VLS_72 = __VLS_71.apply(void 0, __spreadArray([__assign({ class: "table-card" }, { style: {} })], __VLS_functionalComponentArgsRest(__VLS_71), false));
var __VLS_74 = __VLS_73.slots.default;
var __VLS_75 = {}.ElTable;
/** @type {[typeof __VLS_components.ElTable, typeof __VLS_components.elTable, typeof __VLS_components.ElTable, typeof __VLS_components.elTable, ]} */ ;
// @ts-ignore
ElTable;
// @ts-ignore
var __VLS_76 = __VLS_asFunctionalComponent(__VLS_75, new __VLS_75({
    data: (__VLS_ctx.tableData),
    border: true,
    showSummary: true,
    summaryMethod: (__VLS_ctx.calculateSummary),
    headerCellStyle: ({ background: '#f5f7fa' }),
}));
var __VLS_77 = __VLS_76.apply(void 0, __spreadArray([{
        data: (__VLS_ctx.tableData),
        border: true,
        showSummary: true,
        summaryMethod: (__VLS_ctx.calculateSummary),
        headerCellStyle: ({ background: '#f5f7fa' }),
    }], __VLS_functionalComponentArgsRest(__VLS_76), false));
var __VLS_79 = __VLS_78.slots.default;
// @ts-ignore
[tableData, calculateSummary,];
var __VLS_80 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_81 = __VLS_asFunctionalComponent(__VLS_80, new __VLS_80({
    type: "index",
    label: "序号",
    align: "center",
}));
var __VLS_82 = __VLS_81.apply(void 0, __spreadArray([{
        type: "index",
        label: "序号",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_81), false));
var __VLS_85 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_86 = __VLS_asFunctionalComponent(__VLS_85, new __VLS_85({
    prop: "shopName",
    label: "门店名称",
    align: "center",
}));
var __VLS_87 = __VLS_86.apply(void 0, __spreadArray([{
        prop: "shopName",
        label: "门店名称",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_86), false));
var __VLS_90 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_91 = __VLS_asFunctionalComponent(__VLS_90, new __VLS_90({
    prop: (__VLS_ctx.activeTab === 'receipt' ? 'receiptTime' : 'salesTime'),
    label: (__VLS_ctx.activeTab === 'receipt' ? '收款时间' : '销售时间'),
    align: "center",
}));
var __VLS_92 = __VLS_91.apply(void 0, __spreadArray([{
        prop: (__VLS_ctx.activeTab === 'receipt' ? 'receiptTime' : 'salesTime'),
        label: (__VLS_ctx.activeTab === 'receipt' ? '收款时间' : '销售时间'),
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_91), false));
// @ts-ignore
[activeTab, activeTab,];
var __VLS_95 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_96 = __VLS_asFunctionalComponent(__VLS_95, new __VLS_95({
    prop: "orderNo",
    label: "订单编号",
    align: "center",
}));
var __VLS_97 = __VLS_96.apply(void 0, __spreadArray([{
        prop: "orderNo",
        label: "订单编号",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_96), false));
var __VLS_100 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_101 = __VLS_asFunctionalComponent(__VLS_100, new __VLS_100({
    prop: "contact",
    label: "联系人",
    align: "center",
}));
var __VLS_102 = __VLS_101.apply(void 0, __spreadArray([{
        prop: "contact",
        label: "联系人",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_101), false));
var __VLS_105 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_106 = __VLS_asFunctionalComponent(__VLS_105, new __VLS_105({
    prop: "phone",
    label: "手机号",
    align: "center",
}));
var __VLS_107 = __VLS_106.apply(void 0, __spreadArray([{
        prop: "phone",
        label: "手机号",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_106), false));
var __VLS_110 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_111 = __VLS_asFunctionalComponent(__VLS_110, new __VLS_110({
    prop: "manager",
    label: "负责人",
    align: "center",
}));
var __VLS_112 = __VLS_111.apply(void 0, __spreadArray([{
        prop: "manager",
        label: "负责人",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_111), false));
var __VLS_115 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_116 = __VLS_asFunctionalComponent(__VLS_115, new __VLS_115({
    prop: (__VLS_ctx.activeTab === 'receipt' ? 'receiptAmount' : 'salesAmount'),
    label: (__VLS_ctx.activeTab === 'receipt' ? '收款金额' : '销售金额'),
    align: "center",
}));
var __VLS_117 = __VLS_116.apply(void 0, __spreadArray([{
        prop: (__VLS_ctx.activeTab === 'receipt' ? 'receiptAmount' : 'salesAmount'),
        label: (__VLS_ctx.activeTab === 'receipt' ? '收款金额' : '销售金额'),
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_116), false));
// @ts-ignore
[activeTab, activeTab,];
var __VLS_120 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_121 = __VLS_asFunctionalComponent(__VLS_120, new __VLS_120({
    prop: (__VLS_ctx.activeTab === 'receipt' ? 'paymentType' : 'productType'),
    label: (__VLS_ctx.activeTab === 'receipt' ? '支付方式' : '产品类型'),
    align: "center",
}));
var __VLS_122 = __VLS_121.apply(void 0, __spreadArray([{
        prop: (__VLS_ctx.activeTab === 'receipt' ? 'paymentType' : 'productType'),
        label: (__VLS_ctx.activeTab === 'receipt' ? '支付方式' : '产品类型'),
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_121), false));
// @ts-ignore
[activeTab, activeTab,];
var __VLS_125 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_126 = __VLS_asFunctionalComponent(__VLS_125, new __VLS_125({
    prop: (__VLS_ctx.activeTab === 'receipt' ? 'arrears' : 'discount'),
    label: (__VLS_ctx.activeTab === 'receipt' ? '欠款金额' : '折扣金额'),
    align: "center",
}));
var __VLS_127 = __VLS_126.apply(void 0, __spreadArray([{
        prop: (__VLS_ctx.activeTab === 'receipt' ? 'arrears' : 'discount'),
        label: (__VLS_ctx.activeTab === 'receipt' ? '欠款金额' : '折扣金额'),
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_126), false));
// @ts-ignore
[activeTab, activeTab,];
var __VLS_130 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_131 = __VLS_asFunctionalComponent(__VLS_130, new __VLS_130({
    prop: "status",
    label: "状态",
    align: "center",
}));
var __VLS_132 = __VLS_131.apply(void 0, __spreadArray([{
        prop: "status",
        label: "状态",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_131), false));
var __VLS_134 = __VLS_133.slots.default;
{
    var __VLS_135 = __VLS_133.slots.default;
    var scope = __VLS_getSlotParameters(__VLS_135)[0];
    var __VLS_136 = {}.ElTag;
    /** @type {[typeof __VLS_components.ElTag, typeof __VLS_components.elTag, typeof __VLS_components.ElTag, typeof __VLS_components.elTag, ]} */ ;
    // @ts-ignore
    ElTag;
    // @ts-ignore
    var __VLS_137 = __VLS_asFunctionalComponent(__VLS_136, new __VLS_136({
        type: (__VLS_ctx.statusTypeMap[scope.row.status]),
        size: "small",
    }));
    var __VLS_138 = __VLS_137.apply(void 0, __spreadArray([{
            type: (__VLS_ctx.statusTypeMap[scope.row.status]),
            size: "small",
        }], __VLS_functionalComponentArgsRest(__VLS_137), false));
    var __VLS_140 = __VLS_139.slots.default;
    // @ts-ignore
    [statusTypeMap,];
    (scope.row.status);
    var __VLS_139;
}
var __VLS_133;
var __VLS_141 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_142 = __VLS_asFunctionalComponent(__VLS_141, new __VLS_141({
    label: "操作",
    align: "center",
    width: "300",
}));
var __VLS_143 = __VLS_142.apply(void 0, __spreadArray([{
        label: "操作",
        align: "center",
        width: "300",
    }], __VLS_functionalComponentArgsRest(__VLS_142), false));
var __VLS_145 = __VLS_144.slots.default;
{
    var __VLS_146 = __VLS_144.slots.default;
    var scope_1 = __VLS_getSlotParameters(__VLS_146)[0];
    var __VLS_147 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_148 = __VLS_asFunctionalComponent(__VLS_147, new __VLS_147(__assign(__assign({ 'onClick': {} }, { type: "primary", disabled: (scope_1.row.status === '已冻结') }), { class: "oper-btn" })));
    var __VLS_149 = __VLS_148.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "primary", disabled: (scope_1.row.status === '已冻结') }), { class: "oper-btn" })], __VLS_functionalComponentArgsRest(__VLS_148), false));
    var __VLS_151 = void 0;
    var __VLS_152 = void 0;
    var __VLS_153 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.handleEdit(scope_1.row);
                // @ts-ignore
                [handleEdit,];
            } });
    var __VLS_154 = __VLS_150.slots.default;
    var __VLS_150;
    var __VLS_155 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_156 = __VLS_asFunctionalComponent(__VLS_155, new __VLS_155(__assign(__assign({ 'onClick': {} }, { type: "success" }), { class: "oper-btn" })));
    var __VLS_157 = __VLS_156.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "success" }), { class: "oper-btn" })], __VLS_functionalComponentArgsRest(__VLS_156), false));
    var __VLS_159 = void 0;
    var __VLS_160 = void 0;
    var __VLS_161 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.handleDetail(scope_1.row);
                // @ts-ignore
                [handleDetail,];
            } });
    var __VLS_162 = __VLS_158.slots.default;
    var __VLS_158;
    var __VLS_163 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_164 = __VLS_asFunctionalComponent(__VLS_163, new __VLS_163(__assign(__assign({ 'onClick': {} }, { type: (scope_1.row.status === '已冻结' ? 'info' : 'warning') }), { class: "oper-btn" })));
    var __VLS_165 = __VLS_164.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: (scope_1.row.status === '已冻结' ? 'info' : 'warning') }), { class: "oper-btn" })], __VLS_functionalComponentArgsRest(__VLS_164), false));
    var __VLS_167 = void 0;
    var __VLS_168 = void 0;
    var __VLS_169 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.handleFreeze(scope_1.row);
                // @ts-ignore
                [handleFreeze,];
            } });
    var __VLS_170 = __VLS_166.slots.default;
    (scope_1.row.status === '已冻结' ? '已冻结' : '冻结');
    var __VLS_166;
    var __VLS_171 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_172 = __VLS_asFunctionalComponent(__VLS_171, new __VLS_171(__assign(__assign({ 'onClick': {} }, { type: "danger" }), { class: "oper-btn" })));
    var __VLS_173 = __VLS_172.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "danger" }), { class: "oper-btn" })], __VLS_functionalComponentArgsRest(__VLS_172), false));
    var __VLS_175 = void 0;
    var __VLS_176 = void 0;
    var __VLS_177 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.handleExport(scope_1.row);
                // @ts-ignore
                [handleExport,];
            } });
    var __VLS_178 = __VLS_174.slots.default;
    var __VLS_179 = {}.ElIcon;
    /** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
    // @ts-ignore
    ElIcon;
    // @ts-ignore
    var __VLS_180 = __VLS_asFunctionalComponent(__VLS_179, new __VLS_179({}));
    var __VLS_181 = __VLS_180.apply(void 0, __spreadArray([{}], __VLS_functionalComponentArgsRest(__VLS_180), false));
    var __VLS_183 = __VLS_182.slots.default;
    var __VLS_184 = {}.Download;
    /** @type {[typeof __VLS_components.Download, ]} */ ;
    // @ts-ignore
    icons_vue_1.Download;
    // @ts-ignore
    var __VLS_185 = __VLS_asFunctionalComponent(__VLS_184, new __VLS_184({}));
    var __VLS_186 = __VLS_185.apply(void 0, __spreadArray([{}], __VLS_functionalComponentArgsRest(__VLS_185), false));
    var __VLS_182;
    var __VLS_174;
}
var __VLS_144;
var __VLS_78;
var __VLS_73;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "pagination-container" }));
var __VLS_189 = {}.ElPagination;
/** @type {[typeof __VLS_components.ElPagination, typeof __VLS_components.elPagination, ]} */ ;
// @ts-ignore
ElPagination;
// @ts-ignore
var __VLS_190 = __VLS_asFunctionalComponent(__VLS_189, new __VLS_189(__assign(__assign({ 'onSizeChange': {} }, { 'onCurrentChange': {} }), { currentPage: (__VLS_ctx.pagination.currentPage), pageSizes: ([10, 20, 50]), pageSize: (__VLS_ctx.pagination.pageSize), total: (__VLS_ctx.pagination.total), layout: "total, sizes, prev, pager, next, jumper" })));
var __VLS_191 = __VLS_190.apply(void 0, __spreadArray([__assign(__assign({ 'onSizeChange': {} }, { 'onCurrentChange': {} }), { currentPage: (__VLS_ctx.pagination.currentPage), pageSizes: ([10, 20, 50]), pageSize: (__VLS_ctx.pagination.pageSize), total: (__VLS_ctx.pagination.total), layout: "total, sizes, prev, pager, next, jumper" })], __VLS_functionalComponentArgsRest(__VLS_190), false));
var __VLS_193;
var __VLS_194;
var __VLS_195 = ({ sizeChange: {} },
    { onSizeChange: (__VLS_ctx.handleSizeChange) });
var __VLS_196 = ({ currentChange: {} },
    { onCurrentChange: (__VLS_ctx.handlePageChange) });
// @ts-ignore
[pagination, pagination, pagination, handleSizeChange, handlePageChange,];
var __VLS_192;
var __VLS_198 = {}.ElDialog;
/** @type {[typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, ]} */ ;
// @ts-ignore
ElDialog;
// @ts-ignore
var __VLS_199 = __VLS_asFunctionalComponent(__VLS_198, new __VLS_198({
    title: "订单详情",
    modelValue: (__VLS_ctx.detailDialogVisible),
    width: "60%",
}));
var __VLS_200 = __VLS_199.apply(void 0, __spreadArray([{
        title: "订单详情",
        modelValue: (__VLS_ctx.detailDialogVisible),
        width: "60%",
    }], __VLS_functionalComponentArgsRest(__VLS_199), false));
var __VLS_202 = __VLS_201.slots.default;
// @ts-ignore
[detailDialogVisible,];
var __VLS_203 = {}.ElDescriptions;
/** @type {[typeof __VLS_components.ElDescriptions, typeof __VLS_components.elDescriptions, typeof __VLS_components.ElDescriptions, typeof __VLS_components.elDescriptions, ]} */ ;
// @ts-ignore
ElDescriptions;
// @ts-ignore
var __VLS_204 = __VLS_asFunctionalComponent(__VLS_203, new __VLS_203({
    column: "1",
    border: true,
}));
var __VLS_205 = __VLS_204.apply(void 0, __spreadArray([{
        column: "1",
        border: true,
    }], __VLS_functionalComponentArgsRest(__VLS_204), false));
var __VLS_207 = __VLS_206.slots.default;
var __VLS_208 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_209 = __VLS_asFunctionalComponent(__VLS_208, new __VLS_208({
    label: "订单编号",
}));
var __VLS_210 = __VLS_209.apply(void 0, __spreadArray([{
        label: "订单编号",
    }], __VLS_functionalComponentArgsRest(__VLS_209), false));
var __VLS_212 = __VLS_211.slots.default;
(__VLS_ctx.currentOrder.orderNo || '-');
// @ts-ignore
[currentOrder,];
var __VLS_211;
var __VLS_213 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_214 = __VLS_asFunctionalComponent(__VLS_213, new __VLS_213({
    label: "门店名称",
}));
var __VLS_215 = __VLS_214.apply(void 0, __spreadArray([{
        label: "门店名称",
    }], __VLS_functionalComponentArgsRest(__VLS_214), false));
var __VLS_217 = __VLS_216.slots.default;
(__VLS_ctx.currentOrder.shopName || '-');
// @ts-ignore
[currentOrder,];
var __VLS_216;
var __VLS_218 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_219 = __VLS_asFunctionalComponent(__VLS_218, new __VLS_218({
    label: "时间",
}));
var __VLS_220 = __VLS_219.apply(void 0, __spreadArray([{
        label: "时间",
    }], __VLS_functionalComponentArgsRest(__VLS_219), false));
var __VLS_222 = __VLS_221.slots.default;
(__VLS_ctx.activeTab === 'receipt' ? __VLS_ctx.currentOrder.receiptTime : __VLS_ctx.currentOrder.salesTime || '-');
// @ts-ignore
[activeTab, currentOrder, currentOrder,];
var __VLS_221;
var __VLS_223 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_224 = __VLS_asFunctionalComponent(__VLS_223, new __VLS_223({
    label: "联系人",
}));
var __VLS_225 = __VLS_224.apply(void 0, __spreadArray([{
        label: "联系人",
    }], __VLS_functionalComponentArgsRest(__VLS_224), false));
var __VLS_227 = __VLS_226.slots.default;
(__VLS_ctx.currentOrder.contact || '-');
// @ts-ignore
[currentOrder,];
var __VLS_226;
var __VLS_228 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_229 = __VLS_asFunctionalComponent(__VLS_228, new __VLS_228({
    label: "手机号",
}));
var __VLS_230 = __VLS_229.apply(void 0, __spreadArray([{
        label: "手机号",
    }], __VLS_functionalComponentArgsRest(__VLS_229), false));
var __VLS_232 = __VLS_231.slots.default;
(__VLS_ctx.currentOrder.phone || '-');
// @ts-ignore
[currentOrder,];
var __VLS_231;
var __VLS_233 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_234 = __VLS_asFunctionalComponent(__VLS_233, new __VLS_233({
    label: "负责人",
}));
var __VLS_235 = __VLS_234.apply(void 0, __spreadArray([{
        label: "负责人",
    }], __VLS_functionalComponentArgsRest(__VLS_234), false));
var __VLS_237 = __VLS_236.slots.default;
(__VLS_ctx.currentOrder.manager || '-');
// @ts-ignore
[currentOrder,];
var __VLS_236;
var __VLS_238 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_239 = __VLS_asFunctionalComponent(__VLS_238, new __VLS_238({
    label: "{{ activeTab === 'receipt' ? '收款金额' : '销售金额' }}",
}));
var __VLS_240 = __VLS_239.apply(void 0, __spreadArray([{
        label: "{{ activeTab === 'receipt' ? '收款金额' : '销售金额' }}",
    }], __VLS_functionalComponentArgsRest(__VLS_239), false));
var __VLS_242 = __VLS_241.slots.default;
(__VLS_ctx.activeTab === 'receipt' ? __VLS_ctx.currentOrder.receiptAmount : __VLS_ctx.currentOrder.salesAmount || '-');
// @ts-ignore
[activeTab, currentOrder, currentOrder,];
var __VLS_241;
var __VLS_243 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_244 = __VLS_asFunctionalComponent(__VLS_243, new __VLS_243({
    label: "{{ activeTab === 'receipt' ? '支付方式' : '产品类型' }}",
}));
var __VLS_245 = __VLS_244.apply(void 0, __spreadArray([{
        label: "{{ activeTab === 'receipt' ? '支付方式' : '产品类型' }}",
    }], __VLS_functionalComponentArgsRest(__VLS_244), false));
var __VLS_247 = __VLS_246.slots.default;
(__VLS_ctx.activeTab === 'receipt' ? __VLS_ctx.currentOrder.paymentType : __VLS_ctx.currentOrder.productType || '-');
// @ts-ignore
[activeTab, currentOrder, currentOrder,];
var __VLS_246;
var __VLS_248 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_249 = __VLS_asFunctionalComponent(__VLS_248, new __VLS_248({
    label: "{{ activeTab === 'receipt' ? '欠款金额' : '折扣金额' }}",
}));
var __VLS_250 = __VLS_249.apply(void 0, __spreadArray([{
        label: "{{ activeTab === 'receipt' ? '欠款金额' : '折扣金额' }}",
    }], __VLS_functionalComponentArgsRest(__VLS_249), false));
var __VLS_252 = __VLS_251.slots.default;
(__VLS_ctx.activeTab === 'receipt' ? __VLS_ctx.currentOrder.arrears : __VLS_ctx.currentOrder.discount || '-');
// @ts-ignore
[activeTab, currentOrder, currentOrder,];
var __VLS_251;
var __VLS_253 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_254 = __VLS_asFunctionalComponent(__VLS_253, new __VLS_253({
    label: "状态",
}));
var __VLS_255 = __VLS_254.apply(void 0, __spreadArray([{
        label: "状态",
    }], __VLS_functionalComponentArgsRest(__VLS_254), false));
var __VLS_257 = __VLS_256.slots.default;
(__VLS_ctx.currentOrder.status || '-');
// @ts-ignore
[currentOrder,];
var __VLS_256;
var __VLS_206;
var __VLS_201;
var __VLS_258 = {}.ElDialog;
/** @type {[typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, ]} */ ;
// @ts-ignore
ElDialog;
// @ts-ignore
var __VLS_259 = __VLS_asFunctionalComponent(__VLS_258, new __VLS_258({
    title: "编辑订单",
    modelValue: (__VLS_ctx.editDialogVisible),
    width: "60%",
}));
var __VLS_260 = __VLS_259.apply(void 0, __spreadArray([{
        title: "编辑订单",
        modelValue: (__VLS_ctx.editDialogVisible),
        width: "60%",
    }], __VLS_functionalComponentArgsRest(__VLS_259), false));
var __VLS_262 = __VLS_261.slots.default;
// @ts-ignore
[editDialogVisible,];
var __VLS_263 = {}.ElForm;
/** @type {[typeof __VLS_components.ElForm, typeof __VLS_components.elForm, typeof __VLS_components.ElForm, typeof __VLS_components.elForm, ]} */ ;
// @ts-ignore
ElForm;
// @ts-ignore
var __VLS_264 = __VLS_asFunctionalComponent(__VLS_263, new __VLS_263({
    model: (__VLS_ctx.editForm),
    labelWidth: "120px",
}));
var __VLS_265 = __VLS_264.apply(void 0, __spreadArray([{
        model: (__VLS_ctx.editForm),
        labelWidth: "120px",
    }], __VLS_functionalComponentArgsRest(__VLS_264), false));
var __VLS_267 = __VLS_266.slots.default;
// @ts-ignore
[editForm,];
var __VLS_268 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_269 = __VLS_asFunctionalComponent(__VLS_268, new __VLS_268({
    label: "联系人",
}));
var __VLS_270 = __VLS_269.apply(void 0, __spreadArray([{
        label: "联系人",
    }], __VLS_functionalComponentArgsRest(__VLS_269), false));
var __VLS_272 = __VLS_271.slots.default;
var __VLS_273 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_274 = __VLS_asFunctionalComponent(__VLS_273, new __VLS_273({
    modelValue: (__VLS_ctx.editForm.contact),
}));
var __VLS_275 = __VLS_274.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.editForm.contact),
    }], __VLS_functionalComponentArgsRest(__VLS_274), false));
// @ts-ignore
[editForm,];
var __VLS_271;
var __VLS_278 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_279 = __VLS_asFunctionalComponent(__VLS_278, new __VLS_278({
    label: "手机号",
}));
var __VLS_280 = __VLS_279.apply(void 0, __spreadArray([{
        label: "手机号",
    }], __VLS_functionalComponentArgsRest(__VLS_279), false));
var __VLS_282 = __VLS_281.slots.default;
var __VLS_283 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_284 = __VLS_asFunctionalComponent(__VLS_283, new __VLS_283({
    modelValue: (__VLS_ctx.editForm.phone),
}));
var __VLS_285 = __VLS_284.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.editForm.phone),
    }], __VLS_functionalComponentArgsRest(__VLS_284), false));
// @ts-ignore
[editForm,];
var __VLS_281;
var __VLS_288 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_289 = __VLS_asFunctionalComponent(__VLS_288, new __VLS_288({
    label: "负责人",
}));
var __VLS_290 = __VLS_289.apply(void 0, __spreadArray([{
        label: "负责人",
    }], __VLS_functionalComponentArgsRest(__VLS_289), false));
var __VLS_292 = __VLS_291.slots.default;
var __VLS_293 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_294 = __VLS_asFunctionalComponent(__VLS_293, new __VLS_293({
    modelValue: (__VLS_ctx.editForm.manager),
}));
var __VLS_295 = __VLS_294.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.editForm.manager),
    }], __VLS_functionalComponentArgsRest(__VLS_294), false));
// @ts-ignore
[editForm,];
var __VLS_291;
if (__VLS_ctx.activeTab === 'receipt') {
    // @ts-ignore
    [activeTab,];
    var __VLS_298 = {}.ElFormItem;
    /** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
    // @ts-ignore
    ElFormItem;
    // @ts-ignore
    var __VLS_299 = __VLS_asFunctionalComponent(__VLS_298, new __VLS_298({
        label: "支付方式",
    }));
    var __VLS_300 = __VLS_299.apply(void 0, __spreadArray([{
            label: "支付方式",
        }], __VLS_functionalComponentArgsRest(__VLS_299), false));
    var __VLS_302 = __VLS_301.slots.default;
    var __VLS_303 = {}.ElInput;
    /** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
    // @ts-ignore
    ElInput;
    // @ts-ignore
    var __VLS_304 = __VLS_asFunctionalComponent(__VLS_303, new __VLS_303({
        modelValue: (__VLS_ctx.editForm.paymentType),
    }));
    var __VLS_305 = __VLS_304.apply(void 0, __spreadArray([{
            modelValue: (__VLS_ctx.editForm.paymentType),
        }], __VLS_functionalComponentArgsRest(__VLS_304), false));
    // @ts-ignore
    [editForm,];
    var __VLS_301;
}
if (__VLS_ctx.activeTab === 'sales') {
    // @ts-ignore
    [activeTab,];
    var __VLS_308 = {}.ElFormItem;
    /** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
    // @ts-ignore
    ElFormItem;
    // @ts-ignore
    var __VLS_309 = __VLS_asFunctionalComponent(__VLS_308, new __VLS_308({
        label: "产品类型",
    }));
    var __VLS_310 = __VLS_309.apply(void 0, __spreadArray([{
            label: "产品类型",
        }], __VLS_functionalComponentArgsRest(__VLS_309), false));
    var __VLS_312 = __VLS_311.slots.default;
    var __VLS_313 = {}.ElInput;
    /** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
    // @ts-ignore
    ElInput;
    // @ts-ignore
    var __VLS_314 = __VLS_asFunctionalComponent(__VLS_313, new __VLS_313({
        modelValue: (__VLS_ctx.editForm.productType),
    }));
    var __VLS_315 = __VLS_314.apply(void 0, __spreadArray([{
            modelValue: (__VLS_ctx.editForm.productType),
        }], __VLS_functionalComponentArgsRest(__VLS_314), false));
    // @ts-ignore
    [editForm,];
    var __VLS_311;
}
var __VLS_318 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_319 = __VLS_asFunctionalComponent(__VLS_318, new __VLS_318({
    label: "状态",
}));
var __VLS_320 = __VLS_319.apply(void 0, __spreadArray([{
        label: "状态",
    }], __VLS_functionalComponentArgsRest(__VLS_319), false));
var __VLS_322 = __VLS_321.slots.default;
var __VLS_323 = {}.ElSelect;
/** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
// @ts-ignore
ElSelect;
// @ts-ignore
var __VLS_324 = __VLS_asFunctionalComponent(__VLS_323, new __VLS_323({
    modelValue: (__VLS_ctx.editForm.status),
}));
var __VLS_325 = __VLS_324.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.editForm.status),
    }], __VLS_functionalComponentArgsRest(__VLS_324), false));
var __VLS_327 = __VLS_326.slots.default;
// @ts-ignore
[editForm,];
var __VLS_328 = {}.ElOption;
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
// @ts-ignore
ElOption;
// @ts-ignore
var __VLS_329 = __VLS_asFunctionalComponent(__VLS_328, new __VLS_328({
    label: "待审核",
    value: "待审核",
}));
var __VLS_330 = __VLS_329.apply(void 0, __spreadArray([{
        label: "待审核",
        value: "待审核",
    }], __VLS_functionalComponentArgsRest(__VLS_329), false));
var __VLS_333 = {}.ElOption;
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
// @ts-ignore
ElOption;
// @ts-ignore
var __VLS_334 = __VLS_asFunctionalComponent(__VLS_333, new __VLS_333({
    label: "已审核",
    value: "已审核",
}));
var __VLS_335 = __VLS_334.apply(void 0, __spreadArray([{
        label: "已审核",
        value: "已审核",
    }], __VLS_functionalComponentArgsRest(__VLS_334), false));
var __VLS_338 = {}.ElOption;
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
// @ts-ignore
ElOption;
// @ts-ignore
var __VLS_339 = __VLS_asFunctionalComponent(__VLS_338, new __VLS_338({
    label: "已完成",
    value: "已完成",
}));
var __VLS_340 = __VLS_339.apply(void 0, __spreadArray([{
        label: "已完成",
        value: "已完成",
    }], __VLS_functionalComponentArgsRest(__VLS_339), false));
var __VLS_326;
var __VLS_321;
var __VLS_266;
{
    var __VLS_343 = __VLS_261.slots.footer;
    var __VLS_344 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_345 = __VLS_asFunctionalComponent(__VLS_344, new __VLS_344(__assign({ 'onClick': {} })));
    var __VLS_346 = __VLS_345.apply(void 0, __spreadArray([__assign({ 'onClick': {} })], __VLS_functionalComponentArgsRest(__VLS_345), false));
    var __VLS_348 = void 0;
    var __VLS_349 = void 0;
    var __VLS_350 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.editDialogVisible = false;
                // @ts-ignore
                [editDialogVisible,];
            } });
    var __VLS_351 = __VLS_347.slots.default;
    var __VLS_347;
    var __VLS_352 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_353 = __VLS_asFunctionalComponent(__VLS_352, new __VLS_352(__assign({ 'onClick': {} }, { type: "primary" })));
    var __VLS_354 = __VLS_353.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "primary" })], __VLS_functionalComponentArgsRest(__VLS_353), false));
    var __VLS_356 = void 0;
    var __VLS_357 = void 0;
    var __VLS_358 = ({ click: {} },
        { onClick: (__VLS_ctx.saveEdit) });
    var __VLS_359 = __VLS_355.slots.default;
    // @ts-ignore
    [saveEdit,];
    var __VLS_355;
}
var __VLS_261;
/** @type {__VLS_StyleScopedClasses['order-query-page']} */ ;
/** @type {__VLS_StyleScopedClasses['page-title']} */ ;
/** @type {__VLS_StyleScopedClasses['tab-container']} */ ;
/** @type {__VLS_StyleScopedClasses['tab-item']} */ ;
/** @type {__VLS_StyleScopedClasses['active']} */ ;
/** @type {__VLS_StyleScopedClasses['tab-item']} */ ;
/** @type {__VLS_StyleScopedClasses['active']} */ ;
/** @type {__VLS_StyleScopedClasses['back-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['filter-card']} */ ;
/** @type {__VLS_StyleScopedClasses['filter-row']} */ ;
/** @type {__VLS_StyleScopedClasses['filter-item']} */ ;
/** @type {__VLS_StyleScopedClasses['filter-label']} */ ;
/** @type {__VLS_StyleScopedClasses['date-picker']} */ ;
/** @type {__VLS_StyleScopedClasses['filter-item']} */ ;
/** @type {__VLS_StyleScopedClasses['filter-label']} */ ;
/** @type {__VLS_StyleScopedClasses['keyword-input']} */ ;
/** @type {__VLS_StyleScopedClasses['filter-actions']} */ ;
/** @type {__VLS_StyleScopedClasses['quick-period']} */ ;
/** @type {__VLS_StyleScopedClasses['period-label']} */ ;
/** @type {__VLS_StyleScopedClasses['table-card']} */ ;
/** @type {__VLS_StyleScopedClasses['oper-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['oper-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['oper-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['oper-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['pagination-container']} */ ;
var __VLS_export = (await Promise.resolve().then(function () { return require('vue'); })).defineComponent({});
exports.default = {};
